package coe.pumbaa

class Category {
    String title
    String description
    String allowView = "" //Role id for user can view
    String allowPost = "" //Role id for user can post
    
    static hasMany = [posts:Post]

    static constraints = {
        title(blank:false, unique:true)
        description(blank:false)
        allowView(nullable:true)
        allowPost(nullable:true)
    }
}
